<?php

namespace app\api\controller;

use app\BaseController;
use app\api\model\System as SystemModel;

class Index extends BaseController
{
    /* 系统设置 */
    public function system()
    {
        $data = SystemModel::where('id', 1)->field('login_bg, web_color, banner1, banner2, banner3, iphone, article')->find();
        return show(200, 'success', $data);
    }

    /* 常见问题 */
    public function question()
    {
        $data = SystemModel::where('id', 1)->field('question')->find();
        return show(200, 'success', $data);
    }
}
